#include "dialog.h"
#include <QDialog>
#include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>

dialog::dialog(QWidget* parent)
    :QDialog(parent)
{
    QVBoxLayout* vlayout = new QVBoxLayout(this);
    //setLayout(vlayout);

    QLabel* label = new QLabel("ddd", this);
    label->setFrameShape(QFrame::Box);
    QPushButton* button = new QPushButton("AAA", this);
    vlayout->addWidget(label);
    vlayout->addWidget(button);

    connect(button, &QPushButton::clicked, this, [this](){this->close();});
}
